import axiosService from "@/utils/request.js"

export function addContestBaseInfoService(data) {
    return axiosService({
        url: "/admin/contest/base-info/add",
        method: "post",
        data: data
    })
}

export function addContestOjQuestionService(data) {
    return axiosService({
        url: "/admin/contest/question/add",
        method: "post",
        data: data
    })
}

export function editContestOjQuestionService(data) {
    return axiosService({
        url: "/admin/contest/edit",
        method: "post",
        data: data
    })
}

export function updateContestOjQuestionService(data) {
    return axiosService({
        url: "/admin/contest/update",
        method: "post",
        data: data
    })
}

export function deleteContestOjQuestionService(data) {
    return axiosService({
        url: "/admin/contest/question/delete",
        method: "delete",
        data: data
    })
}

export function sortContestOjQuestionService(data) {
    return axiosService({
        url: "/admin/contest/question/sort",
        method: "post",
        data: data
    })
}

export function deleteContestService(data) {
    return axiosService({
        url: "/admin/contest/delete",
        method: "delete",
        data: data
    })
}

export function publishContestService(data) {
    return axiosService({
        url: "/admin/contest/publish",
        method: "post",
        data: data
    })
}

export function revokePublishContestService(data) {
    return axiosService({
        url: "/admin/contest/revoke-publish",
        method: "post",
        data: data
    })
}